<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Reset Your Tetheraid Password</title>
    <style>
    /* Main Styles */
    body {
      font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
      line-height: 1.6;
      color: #333333;
      margin: 0;
      padding: 0;
      background-color: #f8f9fa;
    }

    /* Container */
    .container {
      max-width: 600px;
      margin: 0 auto;
      padding: 20px;
      background-color: #ffffff;
      border-radius: 8px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    /* Header */
    .header {
      text-align: center;
      padding: 20px 0;
      border-bottom: 1px solid #eaeaea;
    }

    .logo {
      max-width: 200px;
      height: auto;
    }

    /* Content */
    .content {
      padding: 20px;
    }

    /* Verification Code Box */
    .verification-code {
      background-color: #f8f9fa;
      border: 1px dashed #dee2e6;
      padding: 15px;
      text-align: center;
      margin: 25px 0;
      border-radius: 4px;
      font-size: 28px;
      font-weight: bold;
      color: #2c3e50;
      letter-spacing: 4px;
      font-family: 'Courier New', monospace;
    }

    /* Button */
    .btn {
      display: inline-block;
      padding: 12px 30px;
      background: linear-gradient(135deg, #1a73e8, #0d47a1);
      color: white !important;
      text-decoration: none;
      border-radius: 4px;
      font-weight: bold;
      margin: 15px 0;
      text-align: center;
      font-size: 16px;
    }

    .btn-reset {
      background: linear-gradient(135deg, #e53935, #c62828);
    }

    /* Security Section */
    .security-section {
      background-color: #f0f4f8;
      padding: 25px;
      border-radius: 6px;
      margin: 30px 0;
      border-left: 4px solid #e53935;
    }

    .security-tips {
      margin: 20px 0;
      padding-left: 20px;
    }

    .security-tips li {
      margin-bottom: 10px;
    }

    /* Footer */
    .footer {
      text-align: center;
      padding: 20px;
      font-size: 13px;
      color: #6c757d;
      border-top: 1px solid #eaeaea;
      line-height: 1.5;
    }

    /* Responsive Design */
    @media screen and (max-width: 600px) {
      .container {
        width: 100%;
        border-radius: 0;
      }

      .verification-code {
        font-size: 24px;
        padding: 12px;
      }
    }
  </style>
</head>

<body>
<div class="container">
    <!-- Header -->
    <div class="header">
        <h1 style="color: #1a73e8; margin-bottom: 5px;">Password Reset Request</h1>
        <p style="margin-top: 0; color: #6c757d; font-size: 18px;">Secure your Tetheraid account</p>
    </div>

    <!-- Content -->
    <div class="content">
        <p>Hello <span th:text="${username}">User</span>,</p>

        <p>We received a request to reset the password for your Tetheraid account. If you didn't make this request, you can safely ignore this email.</p>

        <p>To reset your password, please use the following verification code:</p>

        <div class="verification-code" th:text="${verificationCode}">ABCDEF</div>

        <p>This code will expire in <strong th:text="${expirationTime}">30</strong> minutes.</p>

        <div class="security-section">
            <h3 style="color: #e53935; margin-top: 0;">Security Tips</h3>
            <ul class="security-tips">
                <li>Never share your password or verification codes with anyone</li>
                <li>Create a strong, unique password that you don't use elsewhere</li>
                <li>Enable two-factor authentication for added security</li>
                <li>Be cautious of phishing emails asking for personal information</li>
            </ul>
        </div>

        <p>If you didn't request a password reset, please <a href="#">contact our security team</a> immediately.</p>

        <p>Stay safe,<br /><strong>The Tetheraid Security Team</strong></p>
    </div>

    <!-- Footer -->
    <div class="footer">
        <p>© 2025 Tetheraid Foundation. All rights reserved.</p>
        <p>Tetheraid is a registered 501(c)(3) non-profit organization.</p>
        <p>This email was sent to you as part of our account security services.</p>
    </div>
</div>
</body>
</html>